package com.cpi.cornpp.instructionspurchases.form;

import javax.servlet.http.HttpServletRequest;

import org.apache.struts.action.ActionForm;
import org.apache.struts.action.ActionMapping;

import com.cpi.cornpp.instructionspurchases.view.InstructionPurchaseCreateView;
/**
 * Instruccion de Compra Form
 * Esta forma se utiliza para el Header
 * @author Edgar Joao
 *
 */
public class InstructionPurchaseForm extends ActionForm{
	/** Serial Version UID*/
	private static final long serialVersionUID = 2652455019600140008L;
	
	private String filters;
	private InstructionPurchaseCreateView view;
	
	public InstructionPurchaseForm() {
		this.view = new InstructionPurchaseCreateView();
	}
	
	public InstructionPurchaseCreateView getView() {
		return view;
	}

	public void setView(InstructionPurchaseCreateView argView) {
		view = argView;
	}

	public String getFilters() {
		return filters;
	}

	public void setFilters(String filters) {
		this.filters = filters;
	}
	
	public void reset(ActionMapping mapping, HttpServletRequest request) {
		super.reset(mapping, request);
		filters = null;
		view = new InstructionPurchaseCreateView();
	}
}
